﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace LHWebApp
{
    public partial class main : System.Web.UI.Page
    {
        protected UserInfo userInfo;
        protected string rootPath="http://61.136.59.36:80/LHWebApp/";
        protected void Page_Load(object sender, EventArgs e)
        {
            //if (!Page.IsPostBack)
            {
                Response.Buffer = true;
                Response.Expires = 0;
                Response.ExpiresAbsolute = DateTime.Now.AddDays(-1);
                Response.AddHeader("pragma", "no-cache");
                Response.AddHeader("cache-control", "private");
                Response.CacheControl = "no-cache";

                userInfo = Session["CurrentUserInfo"] as UserInfo;
                if (userInfo == null)
                    Response.Redirect("loginNew.html");

            }
        }
    }
}
